package com.cy.pj.Goods.dao;

import com.cy.pj.Goods.pojo.Gooods;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

@Mapper
public interface GooodsDao {
    List<Gooods> getGoods();

    Gooods getGoodsOne(int id);

    @Delete("delete from tb_goods where id=#{id}")
    int deleteGoods(int id);

}
